﻿namespace Test30.Engine
{
    public class BurnAction : ItemAction
    {
        public BurnAction(Game game, Item item)
            : base(game, item)
        {
        }

        protected override ActionResult OnProcess()
        {
            Item.Charges--;

            if (Item.Charges == 0)
            {
                Dungeon.DirtyLighting();
            }

            return ActionResult.Done;
        }
    }
}
